-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add Stainless SDK config and misc cleanups #132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pengying
wants to merge
1
commit into
01-24-feat_flatten_lightningexternalaccountinfo_schema_split_split_split_split
Choose a base branch
from
01-24-feat_flatten_lightningexternalaccountinfo_schema_split_split_split_split_split
base: 01-24-feat_flatten_lightningexternalaccountinfo_schema_split_split_split_split
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+391
−38
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Jan 24, 2026
Open
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Greptile OverviewGreptile SummaryThis PR adds Stainless SDK configuration for generating TypeScript and Kotlin SDKs and performs several OpenAPI spec cleanups:
Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| .stainless/stainless.yml | Added Stainless SDK configuration for TypeScript and Kotlin SDK generation with comprehensive resource definitions |
| openapi/components/schemas/customers/UltimateBeneficialOwner.yaml | Fixed phoneNumber example to include '+' prefix, matching E.164 format requirements |
| openapi/openapi.yaml | Added AllErrors union schema referencing all error types (400, 401, 403, 404, 409, 412, 424, 500, 501) |
| openapi/paths/internal-accounts/internal_accounts.yaml | Fixed schema reference path from users/InternalAccount.yaml to customers/InternalAccount.yaml |
Sequence Diagram
sequenceDiagram
participant Dev as Developer
participant Stainless as Stainless SDK Generator
participant OpenAPI as OpenAPI Spec
participant SDK as Generated SDK
participant API as Grid API
Note over Dev,OpenAPI: SDK Configuration Setup
Dev->>OpenAPI: Add AllErrors union schema
Dev->>OpenAPI: Update Error → GridError references
Dev->>OpenAPI: Fix schema paths & examples
Dev->>Stainless: Create stainless.yml config
Dev->>Stainless: Create workspace.json
Note over Stainless,SDK: SDK Generation Process
Stainless->>OpenAPI: Read mintlify/openapi.yaml
Stainless->>Stainless: Parse AllErrors schema
Stainless->>Stainless: Split errors by enum property (code)
Stainless->>Stainless: Map resources & methods
Stainless->>SDK: Generate TypeScript SDK
Stainless->>SDK: Generate Kotlin SDK
Note over SDK,API: SDK Usage Flow
SDK->>API: Make API request with BasicAuth
API-->>SDK: Return response or error
SDK->>SDK: Handle error using discriminated union
SDK-->>Dev: Typed error with status & code
6432728 to
e5749d2
Compare
21d334e to
f90918a
Compare
e5749d2 to
a27f6e6
Compare
f90918a to
c6b215b
Compare
a27f6e6 to
a1379cd
Compare
- Add .stainless/stainless.yml and workspace.json - Add AllErrors schema and remove retry quotes endpoint - Update .redocly.lint-ignore.yaml - Fix UltimateBeneficialOwner phone format - Fix internal_accounts ref path
c6b215b to
6464d8a
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Grid API SDK Configuration